package com.test.flink.monitor;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

public class MonitorData implements Serializable {

    private String userId;
    private List<Double> data = new ArrayList<>();

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public List<Double> getData() {
        return data;
    }

    public void setData(List<Double> data) {
        this.data = data;
    }

    public void addData(List<Double> data) {
        this.data.addAll(data);
    }

    @Override
    public String toString() {
        return "MonitorData{" +
                "userId='" + userId + '\'' +
                ", data=" + data +
                '}';
    }
}
